<?php
/*
 * @author eBIZ Team <dev@jungo.com.cn>
 * @copyright  Copyright (c) , ShenZhen JunGO Technology Co., Ltd. All rights reserved.
 * @license  Commercial authorization, unauthorized use and modification are prohibited
 * @url www.jungo.com.cn
 */

namespace ckeeper\services;


use ckeeper\entity\ManagerRightsEntity;

interface RightsService
{

    /**
     * 通过路由获取权限信息
     * @param string $route 路由地址
     * @param string $method 请求方法
     * @return ManagerRightsEntity|null
     */
    public function getRightByRoute(string $route,string $method);


    /**
     * @param int $pid
     * @return ManagerRightsEntity[]
     */
    public function getRightsByPid(int $pid = 0);
}
